package com.spzx.product.api.domain.vo;

import com.spzx.product.api.domain.Product;
import com.spzx.product.api.domain.ProductSku;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.util.List;
import java.util.Map;

@Data
@Schema(description = "商品详情页数据模型")
public class ProductSkuVO {
    @Schema(description = "商品详情页-sku数据")
    private ProductSku productSku; //sku
    @Schema(description = "商品详情页-spu数据")
    private Product product; //spu
    @Schema(description = "商品详情页-sku价格")
    private SkuPriceVO skuPrice;//sku
    @Schema(description = "商品详情页-spu轮播图")
    private List<String> sliderUrlList;//spu
    @Schema(description = "商品详情页-spu详情图")
    private List<String> detailsImageUrlList;//spu_details
    @Schema(description = "商品详情页-spu规格属性值")
    private List<SpecValueVO> specValueList; //spu
    @Schema(description = "商品详情页-sku的库存")
    private SkuStockVO skuStockVo; // sku_stock
    @Schema(description = "商品详情页-spu下所有sku的规格属性值和它id的映射")
    private Map<String,String> skuSpecValueMap; // sku：使用spuId查询spu下所有的sku

}
